import request from '@/utils/request'

let api = {};

api.list = (params = null) => {
    return request({
        url:"/api/member/system/listUsers",
        method:"post",
        data:params
    });
}

api.delete = (ids)=>{
    return request({
        url:"/api/member/system/softDeleteUser",
        method:"post",
        data:ids
    });
}

api.add = (params)=>{
    return request({
        url:"/api/member/system/addUser",
        method:"post",
        data:params
    });
}

api.edit = (params)=>{
    return request({
        url:"/api/member/system/editUser",
        method:"post",
        data:params
    });
}

api.changeUserState = (param)=>{
    return request({
        url:"/api/member/system/changeUserState",
        method:"post",
        data:param
    });
}

api.changeUserPwd = (param)=>{
    return request({
        url:"/api/member/system/changeOwnPwd",
        method:"post",
        data:param
    });
}


api.editOwnInfo = (param)=>{
    return request({
        url:"/api/member/system/editOwnInfo",
        method:"post",
        data:param
    });
}


export default api;